<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('site/tpl/index|site/tpl/header|site/tpl/footer', '1262581445', 'site/tpl/index');?><?php $_TPL['nosidebar']=1; ?>
<?php $_TPL['titles'] = array('首页'); ?>

<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?=$_SCONFIG['sitename']?></title>

<script language="javascript" type="text/javascript" src="public/js/jquery.1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="public/js/effects.core.js"></script>
<script language="javascript" type="text/javascript" src="public/js/jquery.suggest15215.js"></script>
<script language="javascript" type="text/javascript" src="public/js/wtming21867.js"></script>
<script language="javascript" type="text/javascript" src="public/js/DragResize.js"></script>


<link rel="stylesheet" href="public/css/fancybox.css" type="text/css" media="screen">

<link type="text/css" rel="stylesheet" href="public/css/w-style.css"></link>
<link type="text/css" rel="stylesheet" href="public/css/style.css"></link>
<link type="text/css" rel="stylesheet" href="public/css/base-min.css"/>
<link rel="shortcut icon" href="public/images/favicon.ico" />

<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$_SGLOBAL['supe_uid']?>" />
</head>
<body class="graybody">

<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div class="bigwapper">        
<div class="header">
  <div class="logo">
    <a href="index.php"><img src="public/img/index-4.gif" alt="<?=$_SCONFIG['sitename']?>"/></a>
  </div>

   <div class="nav">
   <div class="div">
<ul>
   		<?php if($_SGLOBAL['supe_uid']) { ?>
 <li ><a href="cp.php?ac=common&op=logout">退出</a></li>
  <li><a href="space.php?do=pm<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>&filter=newpm<?php } ?>">消息<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>(新)<?php } ?></a></li>	 
  <li><a href="space.php?do=friend">好友</a></li>
  <li ><a href="space.php?do=home">个人首页</a></li>
 <li class="first"><a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SN[$_SGLOBAL['supe_uid']]?></a>
<?php if($_SN[$_SGLOBAL['supe_uid']]!=$_SGLOBAL['username']) { ?><a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SGLOBAL['supe_username']?></a><?php } ?></li>
<?php } else { ?>

<li ><a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a></li>
            <li class="first"><span style="color:#F15525;">欢迎您</span>&nbsp;&nbsp;<a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a></li>
<?php } ?>
            </div>
      </div>


      <div class="search">
        <form action="site.php?ac=profile&op=search" method="get">
<span class="blue_window">	<input type="text" id="page_focus" class="h_input" size="30" value="" name="key" /> </span>
<input type="hidden" name="ac" value="profile" />
<input type="hidden" name="op" value="search" />
<input type="hidden" name="searchmode" value="1" />
<input type="hidden" value="true" name="searchsubmit" />
            <button type="submit"><span class="blind">搜索</span></button>
</form>
  </div>

<style>
#nav {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/navbg.gif) repeat-x scroll 0 0;
height:42px;
margin:0 auto;
width:970px;
font-size:14px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:bold;
}
#nav span {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/bg.gif) no-repeat scroll 0 0;
display:block;
float:left;
height:42px;
width:8px;
}
#nav li {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/navbg1.gif) no-repeat scroll right 50%;
padding:0 5px;
position:relative;
}
#nav ul, #nav li {
color:#FFFFFF;
float:left;
height:42px;
line-height:42px;
}

#nav li a:hover, #nav li a.current {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/bg.gif) no-repeat scroll 0 -86px;
color:#000000;
text-decoration:none;
}
#nav li a {
font-size:16px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:bold;
color:#FFFFFF;
display:block;
line-height:50px;
text-align:center;
text-decoration:none;
width:94px;
}
#nav span.r {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/bg.gif) no-repeat scroll -10px 0;
float:right;
}
#nav li.noborder {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent none repeat scroll 0 0;
}

</style>
<div class="clearfix" id="nav">
  <span> </span>
    <ul>
     
      <li >
      <a href="index.php" <?php if($li_name=='index') { ?>class="current"<?php } ?>>首页</a></li>
      <li ><a href="site.php?ac=show&fid=4" <?php if($li_name=='star') { ?> class="current"<?php } ?>>明星</a></li>
      <li ><a href="site.php?ac=show&fid=67" <?php if($li_name=='product') { ?> class="current"<?php } ?>>时尚品</a></li>
      <li ><a href="site.php?ac=show&fid=66" <?php if($li_name=='brand') { ?>class="current"<?php } ?>>品牌</a></li>
      <li class="noborder"><a href="site.php?ac=hot" <?php if($li_name=='hot') { ?>  class="current"<?php } ?>>正流行</a></li>

    </ul>
    <span class="r"> </span>
</div>
  
  </div>

<div class="wapper main clearfix">

  

<?php } ?>


<div class="nologin clearfix">
        <img src="public/img/banner_new.png"/>
        <div class="reg_block">
            <a href="do.php?ac=<?=$_SCONFIG['register_action']?>"><img src="public/img/button_reg.png"/></a>
            <a href="do.php?ac=<?=$_SCONFIG['login_action']?>">>去登录</a>
        </div>
</div>

<div class="left">
<?php if(is_array($hot_prof)) { foreach($hot_prof as $fid => $profs) { ?>
<div id="nologin" class="block block_brandone">
            <h2>热门<?php if($fid==4) { ?>明星<?php } elseif($fid==67) { ?>时尚品<?php } else { ?>品牌<?php } ?></h2>
            <div class="content">
            <ul class="clearfix">
<?php if(is_array($profs)) { foreach($profs as $prof) { ?>
                        <li>                    
<div class="brand">
                        <div class="block_img">
                        <div class="image_box"><a href="site.php?ac=profile&profid=<?=$prof['tagid']?>"><img alt="<?=$prof['tagname']?>" src="<?=$prof['pic']?>"/></a></div>
                        <div class="friend_text">
                            <span class="name_text"><a title="<?=$prof['tagname']?>" href="site.php?ac=profile&profid=<?=$prof['tagid']?>"><?=$prof['tagname']?></a></span>
                        </div>
                        </div>
                    </div>
</li>
                        <?php } } ?>           
                            </ul>
            </div>
        </div>
<?php } } ?>

</div>
<div class="right">
<div class="block block_topic2">
           <h2>24小时社区热门话题</h2>
           <ul class="content">
   <?php if(is_array($threadlist)) { foreach($threadlist as $value) { ?>

                     <li class="clearfix">
                    <a href="space.php?uid=<?=$value['uid']?>&do=thread&id=<?=$value['tid']?>">
                       <?=$value['subject']?>                   </a>
                    <span class="author">
                        (<?=$_SN[$value['uid']]?>)
                    </span>
                </li>  
<?php } } ?>
          </ul>
       </div>
<div class="block block_userright">
            <h2>有意思的用户</h2>
            <ul class="content clearfix">
<?php if(is_array($barlist)) { foreach($barlist as $key => $value) { ?>
                                <li>
                                        <div class="user">
                        <div class="block_img">
                        <div class="image_box"><a href="space.php?uid=<?=$value['uid']?>"><img width="60" alt="<?=$_SN[$value['uid']]?>" src="<?php echo avatar($value[uid],small); ?>"/></a></div>
                        <div class="friend_text"><span class="name_text"><a title="<?=$_SN[$value['uid']]?>" href="space.php?uid=<?=$value['uid']?>"><?=$_SN[$value['uid']]?></a></span></div>
                        </div>
                    </div>
                </li>
           <?php } } ?>
                            </ul>
        </div>
</div>

<?php if(empty($_SGLOBAL['inajax'])) { ?>

</div>

<!--/mainarea-->


<!--/main-->
<?php } ?>

       <div class="footer" title="<?php echo debuginfo(); ?>">
            <div class="footermain">
            <div class="footer_inner">
                <div class="company_info">
                  <div class="other_link">
                      <a class="fr" style="margin-right:10px"  href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP"><img src="public/img/up.gif" /></a>
  <a href="" class="other_link01">沪ICP备09037050号</a>
                  </div>
                  <address class="address">
                    Copyright ©2009 wtming.com
                  </address>
                </div>
              </div>
            </div>
        </div>
<!--/wrap-->

<?php if(count($_SGLOBAL['debug_query'])) { ?>
<div>
<ul>
<?php if(is_array($_SGLOBAL['debug_query'])) { foreach($_SGLOBAL['debug_query'] as $k => $v) { ?>
<li><?=$k?> --> <?=$v['sql']?> </li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-112862-2");
pageTracker._trackPageview();
} catch(err) {}</script>


</div>
</body>
</html>

<?php ob_out();?>